#ifndef __MSCLIBS_H  
#define __MSCLIBS_H
#ifdef SDCC
#include <at89x52.h>
#else
#include <reg52.h>
#include <intrins.h>
#endif
#ifndef SDCC

sbit P1_0  = P1^0;
sbit P1_1  = P1^1;
sbit P1_2  = P1^2;
sbit P1_3  = P1^3;
sbit P1_4  = P1^4;
sbit P1_5  = P1^5;
sbit P1_6  = P1^6;
sbit P1_7  = P1^7;

sbit P2_0  = P2^0;
sbit P2_1  = P2^1;
sbit P2_2  = P2^2;
sbit P2_3  = P2^3;
sbit P2_4  = P2^4;
sbit P2_5  = P2^5;
sbit P2_6  = P2^6;
sbit P2_7  = P2^7;

sbit P3_0  = P3^0;
sbit P3_1  = P3^1;
sbit P3_2  = P3^2;
sbit P3_3  = P3^3;
sbit P3_4  = P3^4;
sbit P3_5  = P3^5;
sbit P3_6  = P3^6;
sbit P3_7  = P3^7;
#else
#define code __code
#define bit __bit 
#define xdata __xdata 
#define _nop_() __asm nop __endasm
#endif

extern  void delay(unsigned int time);
extern  void delayNOP();
#endif